package com.fh.common.baseData;

public class TongyiData {

    private Integer status;
    private String info;
    private Object data;
    /*  私有无参构造  目的为了不让外界创建此对象 */
    private TongyiData(){

    }

    private TongyiData(Object data){
        this.info="msg";
        this.status=200;
        this.data=data;
    }

    private TongyiData(Integer status,String msg){
        this.info=msg;
        this.status=status;
    }


    public static TongyiData succee(Object data){
        return new TongyiData(data);
    }
    public static TongyiData error(Integer status,String msg){

        return new TongyiData(status,msg);
    }


    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
